package org.ushio.nchu_22201408.Feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.ushio.common_module.entity.CustomerServiceRecord;
import org.ushio.common_module.entity.RepairRecord;

import java.util.List;

@FeignClient(name = "nchu-22201404")
public interface ServiceOnlineRecordClient {

    @GetMapping("/serviceOnlineRecordByPhoneNumber")
    List<CustomerServiceRecord> getServiceOnlineRecordByPhoneNumber(@RequestParam("phoneNumber") String phoneNumber);

    @GetMapping("maintainGetByPhoneNumber")
    List<RepairRecord> getMaintainGetByPhoneNumber(@RequestParam("phoneNumber") String phoneNumber);
}